package com.kebabeaters.nakebab.client.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.event.shared.HasHandlers;

public class NavigationAutoModeRequest extends
		GwtEvent<NavigationAutoModeRequest.Handler> {

	public static interface Handler extends EventHandler {

		void onRequest(NavigationAutoModeRequest event);
	}

	public interface HasCircleMouseOverHandler extends HasHandlers {
		HandlerRegistration addNavigationAutoModeRequestHandler(Handler handler);
	}


	private static Type<NavigationAutoModeRequest.Handler> TYPE;

	public static Type<NavigationAutoModeRequest.Handler> getType() {
		if (TYPE == null) {
			TYPE = new Type<NavigationAutoModeRequest.Handler>();
		}
		return TYPE;
	}

	@Override
	public final Type<NavigationAutoModeRequest.Handler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(NavigationAutoModeRequest.Handler handler) {
		handler.onRequest(this);
	}
}